package com.arpa.wms.domain.vo;

import com.alibaba.fastjson.annotation.JSONField;
import com.arpa.wms.domain.entity.BasicEntity;
import com.arpa.wms.domain.entity.ReceiptItem;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.List;

/**
 * <p>
 * 仓库收款单DTO
 * </p>
 *
 * @author LEO
 * @since 2020-11-17
 */
@Data
@ApiModel(value="ReceiptVO对象", description="仓库收款单")
public class ReceiptVO extends BasicEntity {


    @ApiModelProperty(value = "收款单号")
    private String code;

    @ApiModelProperty(value = "仓库标识")
    private String warehouseCode;

    @ApiModelProperty(value = "仓库名称")
    private String warehouseName;

    @ApiModelProperty(value = "入驻商")
    private String shipmentCode;

    @ApiModelProperty(value = "货主名称")
    private String shipmentName;

    @ApiModelProperty(value = "收款金额")
    private BigDecimal amountCollected;

    @ApiModelProperty(value = "审核意见")
    private String verifyOpinion;

    @ApiModelProperty(value = "审核时间")
    private LocalDateTime gmtVerify;

    @ApiModelProperty(value = "审核人")
    private String verifyBy;

    @ApiModelProperty(value = "审核人姓名")
    private String verifyName;

    @ApiModelProperty(value = "制单日期")
    @JSONField(format = "yyyy-MM-dd")
    private LocalDate gmtBill;

    @ApiModelProperty(value = "状态:0新建、1待审核、2审核通过、3审核不通过")
    private String status;

    @ApiModelProperty(value = "备注")
    private String remarks;

    @ApiModelProperty(value = "总数")
    private Long total;


    @ApiModelProperty(value = "结算明细")
    private List<ReceiptItem> receiptItemList;
}
